<template>
    <p @click="test">测试内部npm</p>
    <vc-table :data="tableData" stripe :default-columns="defaultColumns">
        <el-table-column prop="date" label="Date" width="160" />
        <el-table-column prop="name" label="Name" width="90" />
        <el-table-column prop="age" label="Age" width="90" />
        <el-table-column prop="address" label="Address" />
    </vc-table>
</template>

<script lang="ts" setup>
import { VcTable } from '@jackz-plus/elp';
const test = () => {};
const defaultColumns = ['Date', 'Name', 'Address'];

const tableData = [
    {
        date: '2016-05-03',
        name: 'Tom',
        age: '20',
        address: 'No. 189, Grove St, Los Angeles'
    },
    {
        date: '2016-05-02',
        name: 'Tom',
        age: '20',
        address: 'No. 189, Grove St, Los Angeles'
    },
    {
        date: '2016-05-04',
        name: 'Tom',
        age: '20',
        address: 'No. 189, Grove St, Los Angeles'
    },
    {
        date: '2016-05-01',
        name: 'Tom',
        age: '20',
        address: 'No. 189, Grove St, Los Angeles'
    }
];
</script>
